package ua.kpi.ustymenko.testcase;
import ua.kpi.ustymenko.testcase.question.Question;

import java.util.Collections;
import java.util.Iterator;
import java.util.List;

public class Questions implements Iterable<Question> {
    private List<Question> questions;

    public Questions(List<Question> questions) {
        this.questions = questions;
    }

    public void shuffle() {
        Collections.shuffle(questions);
    }

    @Override
    public Iterator<Question> iterator() {
        return questions.iterator();
    }
}

